package org.example.memora.entity;

import java.time.Instant;
import java.util.Date;
import jakarta.persistence.Column;
import org.apache.ibatis.type.Alias;
import lombok.Data;
import jakarta.persistence.*;

/**
 * 评论点赞数量统计实体类
 */
@Data
@Alias("CommentLikeStat")
@Table(name = "comment_like_stat")
public class CommentLikeStat {

    /**
     * 评论ID (对应 MongoDB comment _id)
     */
    @Id
    @Column(name = "comment_id")
    private String commentId;

    /**
     * 点赞数
     */
    @Column(name = "like_count")
    private Integer likeCount;

    /**
     * 最后更新时间
     */
    @Column(name = "updated_at")
    private Instant updatedAt;
}
